import { ref } from 'vue'
import type { AddressItem } from '@/types/address'
import { defineStore } from 'pinia'

export const useAddressStore = defineStore('address',()=>{
  const selectAddress = ref<AddressItem>()
  
  // 修改
  const changeSelectAddress = (val:AddressItem) => {
    selectAddress.value = val
  }

  return {
    selectAddress,
    changeSelectAddress
  }
})